package single.shop.search.dao.impl;
 
import java.util.HashMap;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import single.shop.search.dao.BrandDAO;
import single.shop.search.model.bean.BrandDO;


public class BrandDAOImpl extends SqlMapClientDaoSupport implements BrandDAO{
    
	private static final Log LOG = LogFactory.getLog(BrandDAOImpl.class); 
    
	@Override
    public List<BrandDO> getBrandById(HashMap map) {
        return getSqlMapClientTemplate().queryForList("getBrandById", map);
    }
    
	@Override
    public void updateBrandById(BrandDO brand) {
	    super.getSqlMapClientTemplate().update("updateBrandById",
	            brand);
    }
	
}
